import { Module } from "@nestjs/common";
import { UserController } from "./user.controller";
import { UserService } from "./service/user.service";
import { TypeOrmModule } from "@nestjs/typeorm";
import { CollectService } from "./service/collect.service";
import { CollectEntity, MediaEntity, UploadHistoryEntity, UserEntity } from "src/entity";
import { UploadHistoryService } from "./service/upload.history.service";
import { AdminController } from "./controller/admin.controller";
import { CollectController } from "./controller/collect.controller";
import { UploadHistoryController } from "./controller/upload.history.controller";
import { MediaController } from "./controller/media.controller";
import { MediaService } from "./service/media.service";
@Module({
    imports: [TypeOrmModule.forFeature([UserEntity, MediaEntity, CollectEntity, UploadHistoryEntity])],
    controllers: [UserController, AdminController, MediaController, CollectController, UploadHistoryController],
    providers: [UserService, MediaService, CollectService, UploadHistoryService],
    exports: [UserService, MediaService, CollectService, UploadHistoryService],
})
export class UserModule {}
